<?php
/**
 * Created by PhpStorm.
 * User: cyh
 * Date: 2017/5/26
 * Time: 17:24
 */

namespace app\index\controller;


use think\Controller;
use think\Db;

class Get extends Controller
{

    public function Get()
    {
        try {
            $question = $_GET["q"];
            $red = DB::table('quest_ans')->where('question', '=', $question)->find();
            return $red["answer"];
        } catch (Exception $ex) {

            return $ex->getMessage();

        }


    }
}